home *** CD-ROM | disk | FTP | other *** search
- on strata
- global ppl, vppl, trgt
- y2 = duplicate(vppl)
- x2 = duplicate(ppl)
- repeat with i = 2 to 9
- if (getAt(ppl, 1) < getAt(ppl, i)) and (getAt(vppl, 1) > getAt(vppl, i)) then
- u = getAt(ppl, 1)
- setAt(ppl, 1, getAt(ppl, i))
- setAt(ppl, i, u)
- oldm = the member of sprite getAt(ppl, 1)
- oldflip = sprite(getAt(ppl, 1)).flipH
- oldvis = sprite(getAt(ppl, 1)).visible
- sprite(getAt(ppl, 1)).visible = sprite(getAt(ppl, i)).visible
- sprite(getAt(ppl, i)).visible = oldvis
- sprite(getAt(ppl, 1)).flipH = sprite(getAt(ppl, i)).flipH
- sprite(getAt(ppl, i)).flipH = oldflip
- set the member of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, i), 1)
- set the member of sprite getAt(ppl, i) to oldm
- oldloc = the loc of sprite getAt(ppl, 1)
- set the loc of sprite getAt(ppl, 1) to the loc of sprite getAt(ppl, i)
- set the loc of sprite getAt(ppl, i) to oldloc
- updateStage()
- next repeat
- end if
- if (getAt(ppl, 1) > getAt(ppl, i)) and (getAt(vppl, 1) < getAt(vppl, i)) then
- u = getAt(ppl, 1)
- setAt(ppl, 1, getAt(ppl, i))
- setAt(ppl, i, u)
- oldm = the member of sprite getAt(ppl, 1)
- oldflip = sprite(getAt(ppl, 1)).flipH
- oldvis = sprite(getAt(ppl, 1)).visible
- sprite(getAt(ppl, 1)).visible = sprite(getAt(ppl, i)).visible
- sprite(getAt(ppl, i)).visible = oldvis
- sprite(getAt(ppl, 1)).flipH = sprite(getAt(ppl, i)).flipH
- sprite(getAt(ppl, i)).flipH = oldflip
- set the member of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, i), 1)
- set the member of sprite getAt(ppl, i) to oldm
- oldloc = the loc of sprite getAt(ppl, 1)
- set the loc of sprite getAt(ppl, 1) to the loc of sprite getAt(ppl, i)
- set the loc of sprite getAt(ppl, i) to oldloc
- updateStage()
- end if
- end repeat
- end
-
- on brain i
- global ppl, vppl, hppl, trgt, xpnt, ypnt, muchpnt, blty, bltx, bltsprite, bltwich, mnv, fxpath
- if (getAt(trgt, i) = "s") or (getAt(trgt, i) = "b") or (getAt(trgt, i) = "r") or (getAt(trgt, i) = "m") then
- if getAt(ypnt, i) < 0 then
- setAt(ypnt, i, getAt(vppl, i))
- end if
- if (getAt(vppl, i) <= getAt(ypnt, i)) and ((getAt(hppl, i) >= (getAt(xpnt, i) - 20)) and (getAt(hppl, i) <= (getAt(xpnt, i) + 20))) then
- setAt(muchpnt, i, getAt(muchpnt, i) - 1)
- if getAt(muchpnt, i) < -1 then
- setAt(trgt, i, "d")
- setAt(vppl, i, 1000 + i)
- setAt(hppl, i, 1000 + i)
- put value(the text of field "stole") + 1 into field "stole"
- set the member of sprite getAt(ppl, i) to member(148, 1)
- set the loc of sprite i to point(690, 490)
- else
- if (getAt(muchpnt, i) = 0) or (getAt(muchpnt, i) = -1) then
- if getAt(trgt, i) <> "m" then
- if getAt(trgt, i) = "s" then
- setAt(mnv, i, 24)
- sprite(5).visible = 1
- if the memberNum of sprite 5 = 174 then
- set the member of sprite 5 to member(175, 1)
- else
- set the member of sprite 5 to member(174, 1)
- end if
- else
- sprite(6).visible = 1
- setAt(mnv, i, 17)
- if the memberNum of sprite 6 = 172 then
- set the member of sprite 6 to member(176, 1)
- else
- set the member of sprite 6 to member(172, 1)
- end if
- end if
- setAt(trgt, i, "m")
- sprite(getAt(ppl, i)).visible = 0
- else
- if getAt(mnv, i) < 1 then
- setAt(trgt, i, "r")
- sprite(getAt(ppl, i)).visible = 1
- hh = [0, 0, 300, 450, 640, 640]
- yy = [300, 340, 480, 480, 400, 350]
- ws = random(6)
- if abs(getAt(vppl, i) - getAt(yy, ws)) > abs(getAt(hppl, i) - getAt(hh, ws)) then
- if (getAt(vppl, i) - getAt(yy, ws)) > 0 then
- set the member of sprite getAt(ppl, i) to member(67, 1)
- else
- set the member of sprite getAt(ppl, i) to member(156, 1)
- end if
- else
- set the member of sprite getAt(ppl, i) to member(93, 1)
- if (getAt(hppl, i) - getAt(hh, ws)) > 0 then
- sprite(getAt(ppl, i)).flipH = 1
- else
- sprite(getAt(ppl, i)).flipH = 0
- end if
- end if
- setAt(ypnt, i, getAt(yy, ws))
- setAt(xpnt, i, getAt(hh, ws))
- end if
- end if
- else
- e = [208, 217, 521, 217]
- if getAt(trgt, i) = "s" then
- if getAt(muchpnt, i) = 1 then
- tempv = getAt(e, 4)
- temph = getAt(e, 3)
- else
- tempv = getAt(vppl, i) - getAt(e, 4)
- tempv = random(tempv - 30)
- tempv = getAt(vppl, i) - tempv
- temph = getAt(hppl, i) - 200
- if temph < 20 then
- temph = 20
- end if
- temph = random(400) + temph
- if temph > 620 then
- temph = 620
- end if
- end if
- else
- if getAt(muchpnt, i) = 1 then
- tempv = getAt(e, 2)
- temph = getAt(e, 1)
- else
- tempv = getAt(vppl, i) - getAt(e, 2)
- tempv = random(tempv - 30)
- tempv = getAt(vppl, i) - tempv
- temph = getAt(hppl, i) - 200
- if temph < 20 then
- temph = 20
- end if
- temph = random(400) + temph
- if temph > 620 then
- temph = 620
- end if
- end if
- end if
- if abs(getAt(vppl, i) - tempv) > abs(getAt(hppl, i) - temph) then
- if (getAt(vppl, i) - tempv) > 0 then
- set the member of sprite getAt(ppl, i) to member(68, 1)
- else
- set the member of sprite getAt(ppl, i) to member(156, 1)
- end if
- else
- set the member of sprite getAt(ppl, i) to member(93, 1)
- if (getAt(hppl, i) - temph) > 0 then
- sprite(getAt(ppl, i)).flipH = 1
- else
- sprite(getAt(ppl, i)).flipH = 0
- end if
- end if
- setAt(ypnt, i, tempv)
- setAt(xpnt, i, temph)
- end if
- end if
- else
- if count(bltsprite) < 16 then
- thev = getAt(vppl, i) - getAt(vppl, 1)
- theh = getAt(hppl, i) - getAt(hppl, 1)
- if abs(thev) > abs(theh) then
- if thev > 0 then
- set the member of sprite getAt(ppl, i) to member(67, 1)
- else
- set the member of sprite getAt(ppl, i) to member(157, 1)
- end if
- else
- if theh > 0 then
- set the member of sprite getAt(ppl, i) to member(93, 1)
- sprite(getAt(ppl, i)).flipH = 1
- else
- sprite(getAt(ppl, i)).flipH = 0
- set the member of sprite getAt(ppl, i) to member(93, 1)
- end if
- end if
- e = 1
- repeat while e < 16
- if the loc of sprite (49 + e) = point(690, 490) then
- e = 49 + e
- next repeat
- end if
- e = e + 1
- end repeat
- setAt(bltsprite, count(bltsprite) + 1, e)
- setAt(bltwich, count(bltwich) + 1, "bad")
- sound playFile 2, fxpath & "mashot.aif"
- set the locH of sprite e to the locH of sprite getAt(ppl, i)
- set the locV of sprite e to the locV of sprite getAt(ppl, i) - 30
- if (thev < 20) and (thev > -20) then
- setAt(blty, count(blty) + 1, 0)
- else
- if thev >= 20 then
- setAt(blty, count(blty) + 1, -7)
- else
- if thev <= 20 then
- setAt(blty, count(blty) + 1, 7)
- end if
- end if
- end if
- if (theh < 20) and (theh > -20) then
- setAt(bltx, count(bltx) + 1, 0)
- else
- if theh >= 20 then
- setAt(bltx, count(bltx) + 1, -7)
- else
- if theh <= 20 then
- setAt(bltx, count(bltx) + 1, 7)
- end if
- end if
- end if
- if the memberNum of sprite getAt(ppl, i) < 76 then
- setAt(mnv, i, 35)
- yr = 76
- else
- if the memberNum of sprite getAt(ppl, i) < 105 then
- setAt(mnv, i, 36)
- yr = 105
- else
- if (the memberNum of sprite getAt(ppl, i) > 156) and (the memberNum of sprite getAt(ppl, i) < 165) then
- setAt(mnv, i, 35)
- yr = 81
- end if
- end if
- end if
- set the member of sprite getAt(ppl, i) to member(yr, 1)
- end if
- end if
- else
- end if
- end
-